import request from '@/utils/request';

const auth = {
  // 用户登录
  login: (data) => {
    return request.post('/dk/v1/user/login', data);
  },

  // 获取用户信息
  userInfo: (params) => {
    return request.get('/dk/v1/user/userInfo', params);
  },

  // 退出登录
  logout: () => {
    return request.post('/dk/v1/user/logout');
  }
};

export default auth;